package com.example.noobpackage.logic.network

import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST

interface LoginService {
    @FormUrlEncoded
    @POST("login")
    suspend fun login(
        @Field("account") account: Long,
        @Field("password") password: String
    ): LoginResponse

    @FormUrlEncoded
    @POST("register")
    suspend fun register(
        @Field("account") account: Long,
        @Field("password") password: String,
        @Field("name") name: String,
        @Field("department") department: Int,
        @Field("telephone") telephone: String
    ): RegisterResponse
}